<?php

define('DS', DIRECTORY_SEPARATOR);
define('ROOT', realpath(dirname(__FILE__)) . DS);
define('CORE_PATH', ROOT . 'core' . DS);

require_once(CORE_PATH . 'loader.php');
loader();
//define('CONTROLLER_PATH',   APP_PATH . 'controllers' . DS);
//define('VIEW_PATH',         APP_PATH . 'views' . DS);
//define('MODEL_PATH',        APP_PATH . 'models' . DS);



//require_once APP_PATH . 'Config.php';
//require_once APP_PATH . 'Request.php';
//require_once APP_PATH . 'Bootstrap.php';
//require_once APP_PATH . 'Registro.php';
//require_once APP_PATH . 'Database.php';
//require_once CONTROLLER_PATH    . 'Controller.php';
//require_once VIEW_PATH          . 'View.php';
//
//require_once LIBS_PATH          . 'php-activerecord' . DS . 'ar-config.php';


try{
    Bootstrap::run(new Request);
}
catch(Exception $e){
    echo $e->getMessage();
}

?>